﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Global.Master" AutoEventWireup="true" CodeBehind="Muestras.aspx.cs" Inherits="WebAsbesto.Muestras.Muestras" %>

<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="server">



    <table style="width: 100%">
        <tr>
            <td colspan="3">
                <asp:Label ID="lbl_Titulo" runat="server" Text="Muestras" Style="text-align: center" Font-Size="25" ForeColor="Green"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Label ID="lbl_Cliente" runat="server" Text="Cliente"></asp:Label>
            </td>
            <td>
                <asp:Label ID="lbl_Obras" runat="server" Text="Obras"></asp:Label>
            </td>
            <td>
                <asp:Label ID="lbl_Muestr" runat="server" Text="Muestras"></asp:Label>
            </td>
        </tr>
        <tr>
            <td>
                <asp:DropDownList ID="ddl_Clientes" runat="server" DataSourceID="OdClientes" DataTextField="Razon_Social" DataValueField="Id_Cliente" OnSelectedIndexChanged="ddl_Clientes_SelectedIndexChanged">
                </asp:DropDownList>
                <asp:SqlDataSource ID="OdClientes" runat="server" ConnectionString="<%$ ConnectionStrings:AsbestoConnectionString %>" SelectCommand="SELECT Clientes.Id_Cliente, Clientes.Razon_Social FROM Clientes INNER JOIN Obras ON Clientes.Id_Cliente = Obras.Id_Cliente"></asp:SqlDataSource>
            </td>
            <td>
                <asp:DropDownList ID="ddl_Obras" runat="server" DataSourceID="OdObras" DataTextField="Nombre" DataValueField="Id_Obra">
                </asp:DropDownList>
                <asp:SqlDataSource ID="OdObras" runat="server" ConnectionString="<%$ ConnectionStrings:AsbestoConnectionString %>" SelectCommand="Obras_L" SelectCommandType="StoredProcedure">
                    <SelectParameters>
                        <asp:ControlParameter ControlID="ddl_Clientes" DefaultValue="-1" Name="Id_Cliente" PropertyName="SelectedValue" Type="Int32" />
                    </SelectParameters>
                </asp:SqlDataSource>
            </td>
            <td>
                <asp:DropDownList ID="ddl_Tipo_Muestra" runat="server">
                    <asp:ListItem>Aire</asp:ListItem>
                    <asp:ListItem>Bulk</asp:ListItem>
                    <asp:ListItem>Superficie</asp:ListItem>
                </asp:DropDownList>
            </td>
        </tr>
        <tr>
            <td>
                <asp:Button ID="btn_Cliente" runat="server" OnClick="btn_Cliente_Click" Text="&gt;&gt;" />
            </td>
            <td>&nbsp;</td>
            <td>&nbsp;</td>
        </tr>
        <tr>
            <td>
                <asp:Button ID="btn_Buscar" runat="server" Text="Buscar" OnClick="btn_Buscar_Click" />
            </td>
            <td>&nbsp;</td>
            <td>
                <asp:Button ID="btn_Nueva" runat="server" OnClick="btn_Nueva_Click" Text="Nueva" />
            </td>
        </tr>
    </table>

</asp:Content>
